package com.zjitc;

import com.zjitc.obj.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App1
{

  public static void main(String[] args) {
    //引用外部配置文件的实例
    ApplicationContext context=new ClassPathXmlApplicationContext("main-config.xml");
    User u_su=context.getBean("u_su",User.class);
    System.out.println(u_su);
  }
}
